<script type="text/javascript">
    $(function(){
        $.formValidator.initConfig({formID:"message_messagelist_add_dialog_form",onError:function(msg){/*$.messager.alert('错误提示', msg, 'error');*/},onSuccess:memberMemberlistAddDialogFormSubmit,submitAfterAjaxPrompt:'有数据正在异步验证，请稍等...',inIframe:true});

        $("#message_messagelist_add_dialog_form_content").formValidator({onShow:"请输入消息内容",onFocus:"消息内容不小于5个字符"}).inputValidator({min:5,max:2000,onError:"消息内容不小于5个字符"});
    })
    function memberMemberlistAddDialogFormSubmit(){
        $.post('<{:U('Message/messageAdd')}>', $("#message_messagelist_add_dialog_form").serialize(), function(res){
            if(!res.status){
                $.messager.alert('提示信息', res.info, 'error');
            }else{
                $.messager.alert('提示信息', res.info, 'info');
                $('#message_messagelist_add_dialog').dialog('close');
                messageMessageRefresh();
            }
        })
    }
</script>
<form id="message_messagelist_add_dialog_form">
    <table>
        <tr>
            <td width="80">系统消息内容：</td>
            <td><textarea cols="2" rows="6" id="message_messagelist_add_dialog_form_content" type="text" name="info[content]" style="width:180px" ></textarea></td>
            <td><div id="message_messagelist_add_dialog_form_contentTip"></div></td>
        </tr>



    </table>
</form>